package command;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import command.protobuf.AppendTweetCmdUtil.BooleanResponseArgs;

public class BooleanResponse implements IResponse {
	BooleanResponseArgs res = null;
	
	@Override
	public void read(InputStream input) throws IOException {
		res = BooleanResponseArgs.parseFrom(input);
	}

	@Override
	public void write(OutputStream output) throws IOException {
		res.writeTo(output);
	}

	@Override
	public Object get() {
		return res.getRet();
	}

	@Override
	public void set(Object content) {
		res = (BooleanResponseArgs) content;

	}

	@Override
	public short getCmdType() {
		return 0;
	}

}
